/**
 * 测试代码，将要删除
 * Created by long.hua on 2015/12/17.
 */

var rows = [
    {code:'111', name:'PingGuo',price:'123'},
    {code:'222', name:'XiangJiao',price:'345'}
];

$('#dg').datagrid({
    url:null,
    data: rows,
    columns:[[
        {field:'code',title:'Code',width:100},
        {field:'name',title:'Name',width:100},
        {field:'price',title:'Price',width:100,align:'right'}
    ]]
});